package com.gugu.procedure.dao;

import com.gugu.procedure.bean.Parameter;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ParameterDao extends JpaRepository<Parameter, Long>, JpaSpecificationExecutor<Parameter> {

    List<Parameter> findByOrderNoOrderBySequeDesc(String orderNo);

    Parameter findTopByOrderNoAndSpecs(String orderNo, String specs);


    void deleteAllByOrderNo(String orderNo);

}
